package com.woniu.woniuYoga.comm.core.dto;

import lombok.Getter;

import java.io.Serializable;

/**
 * @author: 付宽成
 * @description: ResultBo 自定义结果封装工具类
 * @date: 2020/8/18 9:26
 * @version: 1.0
 */
@Getter
public class ResultDto implements Serializable {
    private static final long serialVersionUID = 1L;
    private Integer code;
    private String msg;
    private Object obj;

    public static ResultDto success() {
        return new ResultDto();
    }

    public ResultDto setCode(Integer code) {
        this.code = code;
        return this;
    }

    public ResultDto setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public ResultDto setObj(Object obj) {
        this.obj = obj;
        return this;
    }

}
